﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{
    public class BDestination
    {
        private readonly DDestination _dDestination = new DDestination();

        public bool Exists(string name)
        {
            return _dDestination.Exists(name);
        }

        public DestinationInfo Add(Model.DestinationInfo model)
        {
            return _dDestination.Add(model);
        }
         
        public bool Delete(int id)
        {
            return _dDestination.Delete(id);
        }

        public Model.DestinationInfo GetModel(int id)
        {
            return _dDestination.GetModel(id);
        }

        public DestinationInfo GetModelByName(string name)
        {
            return _dDestination.GetModelByName(name);
        }
         
        public DataSet GetList(string strWhere)
        {
            return _dDestination.GetList(strWhere);
        }
    }
}
